﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"  %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

    <title></title>
    <script language="javascript" type="text/javascript">

        window.onerror = function () {
            return true;
        };
    </script>
    <script src="../Scripts/jquery.js" type="text/javascript"></script>
    <link href="../Styles/ts_css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            var winHeight = $(document.body).outerHeight(true);
            $("#hidWinHeight").val(winHeight);
            //            alert($(window).height()); //浏览器当前窗口可视区域高度 
            //            alert($(document).height()); //浏览器当前窗口文档的高度 
            //            alert($(document.body).height()); //浏览器当前窗口文档body的高度 
            //            alert($(document.body).outerHeight(true)); //浏览器当前窗口文档body的总高度 包括border padding margin 

        });
    
    </script>
    <style type="text/css">
    
    a{
    text_decoration:none;
    }
    /* 列表样式2 * START --------------------*/
    table.tablist
    {
        width: 100%;
        font-size: 12px;
        margin: 0 auto;
        color: #515151;
        text-align: center;
        border-collapse: collapse; /*细线表格代码*/
    }
    table.tablist td
    {
        border: 1px solid #82AFE8; /*细线表格线条颜色*/
        height: 23px;
    }
    table.tablist tr.t1 td
    {
        background-color: #fff;
    }
    /* 交替行第一行的背景色 */
    table.tablist tr.t2 td
    {
        background-color: #EDEDED;
    }
    /* 交替行第二行的背景色 */
    table.tablist tr.t3 td
    {
        background-color: #BDDBFF;
    }
    /* 鼠标经过时的背景色 */
    table.tablist th
    {
        line-height: 23px;
        border: 1px solid #82AFE8;
        background: url(../images/table_dataList.gif) left center repeat-x;
        color: #005B7C;
    }
    table.tablist tbody tr td
    {
        text-align: center;
        white-space: nowrap;
    }
    
    
    /* 列表样式2 *END ---------------------*/
</style>
</head>
<body style="margin-top: 5px; background: #EFF3FF;">
<div class="fjlb">
    <div class="fjlb_1">
        <div> 
	<input type="button" id="btnAdd"  value="添加楼栋" onclick="window.location='goaddhtbuild.do'"/>
	<input type="button" id="roomadd" value="生成房间" onClick="system_category_room()" />
	</div>
        <div class="fjlb_1_jt" id="testtab">
            <a href="#" onclick="Effect('test',this.parentNode.id);">
                <img src="../images/jt1_t.png" id="imgJtd" alt="" /></a></div>
    </div>
    <div class="fjlb_2" id="divTj">
        <table class="tablist">
            <thead style="background: #EFF3EF;">
                <tr>
                    <th class="style1" width="5">
                        序号
                    </th>
                    <th width="15%">
                        项目名称
                    </th>
                    <th width="10%">
                       楼栋名称
                    </th>
                    <th width="15%">
                       楼层数
                    </th>
                    <th width="10%">
                        单元数
                    </th>
                     <th width="10%">
                        修改人
                    </th>
                    <th width="10%">
                       修改时间
                    </th>
                    <th width="15%">
                        备注
                    </th>
                    <th width="5%">
                        修改
                    </th>
                    <th width="5%">
                        删除
                    </th>
                </tr>
            </thead>
            <tbody id="listHeader">
            <c:forEach var="bean" items="${list}">
           <tr class="text-c odd" role="row">     
               <td><input type="checkbox" name="checkbox1" value="${bean.buildId}" /></td>                    
	           <td>${bean.projectId}</td>
	           <td>${bean.buildName}</td>
	           <td>${bean.floorCount}</td>
	           <td>${bean.roomCount}</td>
	           <td>${bean.updateUser}</td>
	           <td><fmt:formatDate value="${bean.updateTime}" pattern="yyyy-MM-dd"/> </td>
	           <td>${bean.remark}</td>
	           <td><a onClick="system_category_upd('修改楼栋','')" href="goupdatehtbuild.do?buildName=${bean.buildName}">修改</a></td>
	           <td><a href="javascript:void(0);" onclick="fun1('${bean.buildId}')">删除</a></td>
		   </tr>
           </c:forEach> 
            </tbody>
        </table>
  
        
    </div>
</div>
<script language="JavaScript" type="text/JavaScript">
 function system_category_add(title,url,w,h){
	layer_show(title,url,w,h);
}
 function system_category_room(){
      	
	 var check =  document.getElementsByName("checkbox1");
    	  var bool= false;
    	  for(var i=0;i<check.length;i++){
    	 if(check[i].checked){
    		 bool=true;             
  			 location.href="goaddhtroom.do?buildId="+check[i].value;  		  
       }  		 
   }
}

 function system_category_upd(title,url,w,h){
	layer_show(title,url,w,h);
}
  	function fun1(id){
  		if(confirm("是否确定删除!")){
  			location.href="deletehtbuild.do?buildId="+id;
  		}
  	}
    	 
  	

</script>
</body>
</html>
